cko_junklist={'Ruined Leather Scraps','Tough Jerky','Chipped Claw','Ruined Pelt','Patchwork Cloak','Chain Cloak','Dirty Trogg Cloth','Dried Bat Blood'}

function cko_cleanup()
  for bag=0,4 do
    for slot=1,GetContainerNumSlots(bag) do
      x1 = GetContainerItemLink(bag,slot)
      if x1 then
        _,n = GetContainerItemInfo(bag,slot)
        for key,vx in cko_junklist do
          if string.find(x1,vx) then
            cko_print("deleting "..vx)
              PickupContainerItem(bag,slot)
              DeleteCursorItem()
          end
        end
      end
    end
  end
end

function cko_cleanup_macro()
  cko_macro_create('cleanup',0,'/script cko_cleanup()')
end

